function update_action() {
    var url = '/action/save';
    var params = {
        id:          getElement('id1').value,
        title:       getElement('title_input1').value,
        tg_format:   'json'
    };


    var data = queryString(params);

    function update_action_callback(result) {
        result = evalJSONRequest(result);
        if (result['success'] == true) {
            getElement('actionTitle123').innerHTML = 'title';
        }
    }

    var req = getXMLHttpRequest();
    req.open('POST', url, true);
    req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8;');
    sendXMLHttpRequest(req, data).addCallback(update_action_callback);
}
